<?php

namespace App\Models\Device;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use App\Models\Common\CommonModel;
class Device extends CommonModel
{
    use HasFactory;

    protected $table = 'device';
    protected $appends = ['status_name'];

    public function getStatusNameAttribute(){
        return $this->status==1?'有效':'无效';
    }
}
